﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartMD.Manager.Utils
{
    public class GuidUtil
    {
       /* public String NewGuid2()
        {
            var guid = "";
            for (var i = 1; i <= 32; i++)
            {
                var n = Math.Floor(Math.r* 16.0).toString(16);
                guid += n;
                if ((i == 8) || (i == 12) || (i == 16) || (i == 20))
                    guid += "-";
            }
            return guid;
        }*/

        public static string  NewGuid()
        {
            string guid = Guid.NewGuid().ToString().ToUpper().Substring(0, 8);
            return guid;
        }
    }
}
